from math import sqrt
def getWeight():
    weights=[]
    iWeight=input("请输入数字子（直接回车退出！）:")
    while iWeight!="":
        weights.append(eval(iWeight))
        iWeight = input("请输入数字子（直接回车退出！）")
    print(weights)
    return weights

def mean(weights):
    s=0.0
    for weight in  weights:
        s=s+weight
    return s/len(weights)

def oWeighth():
    heights=[]
    weights= getWeight()
    averge=mean(weights)
    for weight in weights:
        if weight> averge:
            heights.append(weight)
    print("超过平均体重：{}".format(heights))
oWeighth()